package com.zzp.service.impl;

import com.zzp.mapper.TbCategoryMapper;
import com.zzp.pojo.TbCategory;
import com.zzp.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
private TbCategoryMapper categoryMapper;

    @Override
    public List<TbCategory> selectAll() {
        return categoryMapper.selectList(null);
    }

    @Override
    public TbCategory selectCategoryId(String CategoryId) {
        return categoryMapper.selectById(CategoryId);
    }
}
